package com.ruoyi.electricity.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用电对象 t_electricity_data
 *
 * @author ljw
 * @date 2023-08-29
 */
public class ElectricityData
{
    private static final long serialVersionUID = 1L;
    /** 设备编号 */
    @Excel(name = "设备编号")
    private String equipCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipName;
    private Integer equipTypeId;
    private String equipType;

    /** 电流值 */
    @Excel(name = "电流值")
    private Double current;
    /** 电压值 */
    @Excel(name = "电压值")
    private Double voltage;

    /** 有功功率 */
    @Excel(name = "有功功率")
    private Double active;

    /** 电能 */
    @Excel(name = "电能")
    private Double paEnergy;

    public Double getPAEnergy() {
        return paEnergy;
    }

    public ElectricityData setPAEnergy(Double PAEnergy) {
        this.paEnergy = PAEnergy;
        return this;
    }

    /** 功率因素 */
    @Excel(name = "功率因素")
    private Double factor;

    /** 数据时间 */
    @Excel(name = "数据时间")
    private String dataTime;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date insertTime;


    /** 单位编号 */
    @Excel(name = "单位编号")
    private String unitCode;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String unitName;


    /** 输煤设备计量仪器编号，当用电类型为 0 和 1 时，字段为空 */
    @Excel(name = "输煤设备计量仪器编号，当用电类型为 0 和 1 时，字段为空")
    private String coalEquipCode;


    /** 无功功率 */
    @Excel(name = "无功功率")
    private Double reactive;

    /** 15分用电量，单位kw·h */
    @Excel(name = "15分用电量，单位kw·h")
    private Double electric;

    /** 时用电，单位kw·h */
    @Excel(name = "时用电，单位kw·h")
    private Double hElectric;

    /** 日用电，单位kw·h */
    @Excel(name = "日用电，单位kw·h")
    private Double dElectric;

    @Excel(name = "日产量，单位吨")
    private Double dOutput;

    /** 月用电，单位kw·h */
    @Excel(name = "月用电，单位kw·h")
    private Double mElectric;

    /** 年用电，单位kw·h */
    @Excel(name = "年用电，单位kw·h")
    private Double yElectric;

    /** 0-煤矿总用电量;1-井下用电量；2-运输设备用电量 3--其他 */
    @Excel(name = "0-煤矿总用电量;1-井下用电量；2-运输设备用电量 3--其他")
    private String electricType;


    /** 谐波 */
    @Excel(name = "谐波")
    private Double harmonic;



    /** 数据来源 */
    @Excel(name = "数据来源")
    private String dataSource;

    /** 是否回补0-否；1-是，默认0 */
    @Excel(name = "是否回补0-否；1-是，默认0")
    private String isBack;

    /** 删除标志0-在用；1-删除 */
    @Excel(name = "删除标志0-在用；1-删除")
    private String delFlag;
    private Integer equipLevel;
    private Double currentMinWarnVal;
    private Double currentMinNormalVal;
    private Double currentMaxNormalVal;
    private Double currentMaxWarnVal;
    /** 电流状态标志（ -1正常，0预警 1一级报警 2 二级报警 3 三级报警 4 四级报警 ）*/
    private Integer currentStatusFlag;
    private Integer isCurrentAlarmBeenSent;
    private Double voltageMinWarnVal;
    private Double voltageMaxNormalVal;
    private Double voltageMinNormalVal;
    private Double voltageMaxWarnVal;
    private Integer voltageStatusFlag;
    private Integer isVoltageAlarmBeenSent;

    /** 正常电流范围 */
    private String currentNormalRange;
    /** 预警电流范围 */
    private String currentWarnRange;
    /** 正常电压范围 */
    private String voltageNormalRange;
    /** 预警电压范围 */
    private String voltageWarnRange;

    public String getCurrentNormalRange() {
        return currentNormalRange;
    }

    public ElectricityData setCurrentNormalRange(String currentNormalRange) {
        this.currentNormalRange = currentNormalRange;
        return this;
    }

    public String getCurrentWarnRange() {
        return currentWarnRange;
    }

    public ElectricityData setCurrentWarnRange(String currentWarnRange) {
        this.currentWarnRange = currentWarnRange;
        return this;
    }

    public String getVoltageNormalRange() {
        return voltageNormalRange;
    }

    public ElectricityData setVoltageNormalRange(String voltageNormalRange) {
        this.voltageNormalRange = voltageNormalRange;
        return this;
    }

    public String getVoltageWarnRange() {
        return voltageWarnRange;
    }

    public ElectricityData setVoltageWarnRange(String voltageWarnRange) {
        this.voltageWarnRange = voltageWarnRange;
        return this;
    }

    public String getEquipCode() {
        return equipCode;
    }

    public ElectricityData setEquipCode(String equipCode) {
        this.equipCode = equipCode;
        return this;
    }

    public String getEquipName() {
        return equipName;
    }

    public ElectricityData setEquipName(String equipName) {
        this.equipName = equipName;
        return this;
    }

    public String getEquipType() {
        return equipType;
    }

    public ElectricityData setEquipType(String equipType) {
        this.equipType = equipType;
        return this;
    }

    public Double getCurrent() {
        return current;
    }

    public ElectricityData setCurrent(Double current) {
        this.current = current;
        return this;
    }

    public Double getVoltage() {
        return voltage;
    }

    public ElectricityData setVoltage(Double voltage) {
        this.voltage = voltage;
        return this;
    }

    public Double getActive() {
        return active;
    }

    public ElectricityData setActive(Double active) {
        this.active = active;
        return this;
    }

    public Double getPaEnergy() {
        return paEnergy;
    }

    public ElectricityData setPaEnergy(Double paEnergy) {
        this.paEnergy = paEnergy;
        return this;
    }

    public Double getFactor() {
        return factor;
    }

    public ElectricityData setFactor(Double factor) {
        this.factor = factor;
        return this;
    }

    public String getDataTime() {
        return dataTime;
    }

    public ElectricityData setDataTime(String dataTime) {
        this.dataTime = dataTime;
        return this;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public ElectricityData setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
        return this;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public ElectricityData setUnitCode(String unitCode) {
        this.unitCode = unitCode;
        return this;
    }

    public String getUnitName() {
        return unitName;
    }

    public ElectricityData setUnitName(String unitName) {
        this.unitName = unitName;
        return this;
    }

    public String getCoalEquipCode() {
        return coalEquipCode;
    }

    public ElectricityData setCoalEquipCode(String coalEquipCode) {
        this.coalEquipCode = coalEquipCode;
        return this;
    }

    public Double getReactive() {
        return reactive;
    }

    public ElectricityData setReactive(Double reactive) {
        this.reactive = reactive;
        return this;
    }

    public Double getElectric() {
        return electric;
    }

    public ElectricityData setElectric(Double electric) {
        this.electric = electric;
        return this;
    }

    public Double gethElectric() {
        return hElectric;
    }

    public ElectricityData sethElectric(Double hElectric) {
        this.hElectric = hElectric;
        return this;
    }

    public Double getdElectric() {
        return dElectric;
    }

    public ElectricityData setdElectric(Double dElectric) {
        this.dElectric = dElectric;
        return this;
    }

    public Double getdOutput() {
        return dOutput;
    }

    public ElectricityData setdOutput(Double dOutput) {
        this.dOutput = dOutput;
        return this;
    }

    public Double getmElectric() {
        return mElectric;
    }

    public ElectricityData setmElectric(Double mElectric) {
        this.mElectric = mElectric;
        return this;
    }

    public Double getyElectric() {
        return yElectric;
    }

    public ElectricityData setyElectric(Double yElectric) {
        this.yElectric = yElectric;
        return this;
    }

    public String getElectricType() {
        return electricType;
    }

    public ElectricityData setElectricType(String electricType) {
        this.electricType = electricType;
        return this;
    }

    public Double getHarmonic() {
        return harmonic;
    }

    public ElectricityData setHarmonic(Double harmonic) {
        this.harmonic = harmonic;
        return this;
    }

    public String getDataSource() {
        return dataSource;
    }

    public ElectricityData setDataSource(String dataSource) {
        this.dataSource = dataSource;
        return this;
    }

    public String getIsBack() {
        return isBack;
    }

    public ElectricityData setIsBack(String isBack) {
        this.isBack = isBack;
        return this;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public ElectricityData setDelFlag(String delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public Integer getEquipLevel() {
        return equipLevel;
    }

    public ElectricityData setEquipLevel(Integer equipLevel) {
        this.equipLevel = equipLevel;
        return this;
    }

    public Double getCurrentMinWarnVal() {
        return currentMinWarnVal;
    }

    public ElectricityData setCurrentMinWarnVal(Double currentMinWarnVal) {
        this.currentMinWarnVal = currentMinWarnVal;
        return this;
    }

    public Double getCurrentMinNormalVal() {
        return currentMinNormalVal;
    }

    public ElectricityData setCurrentMinNormalVal(Double currentMinNormalVal) {
        this.currentMinNormalVal = currentMinNormalVal;
        return this;
    }

    public Double getCurrentMaxNormalVal() {
        return currentMaxNormalVal;
    }

    public ElectricityData setCurrentMaxNormalVal(Double currentMaxNormalVal) {
        this.currentMaxNormalVal = currentMaxNormalVal;
        return this;
    }

    public Double getCurrentMaxWarnVal() {
        return currentMaxWarnVal;
    }

    public ElectricityData setCurrentMaxWarnVal(Double currentMaxWarnVal) {
        this.currentMaxWarnVal = currentMaxWarnVal;
        return this;
    }

    public Integer getCurrentStatusFlag() {
        return currentStatusFlag;
    }

    public ElectricityData setCurrentStatusFlag(Integer currentStatusFlag) {
        this.currentStatusFlag = currentStatusFlag;
        return this;
    }

    public Integer getIsCurrentAlarmBeenSent() {
        return isCurrentAlarmBeenSent;
    }

    public ElectricityData setIsCurrentAlarmBeenSent(Integer isCurrentAlarmBeenSent) {
        this.isCurrentAlarmBeenSent = isCurrentAlarmBeenSent;
        return this;
    }

    public Double getVoltageMinWarnVal() {
        return voltageMinWarnVal;
    }

    public ElectricityData setVoltageMinWarnVal(Double voltageMinWarnVal) {
        this.voltageMinWarnVal = voltageMinWarnVal;
        return this;
    }

    public Double getVoltageMaxNormalVal() {
        return voltageMaxNormalVal;
    }

    public ElectricityData setVoltageMaxNormalVal(Double voltageMaxNormalVal) {
        this.voltageMaxNormalVal = voltageMaxNormalVal;
        return this;
    }

    public Double getVoltageMinNormalVal() {
        return voltageMinNormalVal;
    }

    public ElectricityData setVoltageMinNormalVal(Double voltageMinNormalVal) {
        this.voltageMinNormalVal = voltageMinNormalVal;
        return this;
    }

    public Double getVoltageMaxWarnVal() {
        return voltageMaxWarnVal;
    }

    public ElectricityData setVoltageMaxWarnVal(Double voltageMaxWarnVal) {
        this.voltageMaxWarnVal = voltageMaxWarnVal;
        return this;
    }

    public Integer getVoltageStatusFlag() {
        return voltageStatusFlag;
    }

    public ElectricityData setVoltageStatusFlag(Integer voltageStatusFlag) {
        this.voltageStatusFlag = voltageStatusFlag;
        return this;
    }

    public Integer getIsVoltageAlarmBeenSent() {
        return isVoltageAlarmBeenSent;
    }

    public ElectricityData setIsVoltageAlarmBeenSent(Integer isVoltageAlarmBeenSent) {
        this.isVoltageAlarmBeenSent = isVoltageAlarmBeenSent;
        return this;
    }

    public Integer getEquipTypeId() {
        return equipTypeId;
    }

    public ElectricityData setEquipTypeId(Integer equipTypeId) {
        this.equipTypeId = equipTypeId;
        return this;
    }

    @Override
    public String toString() {
        return "ElectricityData{" +
                "equipCode='" + equipCode + '\'' +
                ", equipName='" + equipName + '\'' +
                ", equipType='" + equipType + '\'' +
                ", current=" + current +
                ", voltage=" + voltage +
                ", active=" + active +
                ", paEnergy=" + paEnergy +
                ", factor=" + factor +
                ", dataTime='" + dataTime + '\'' +
                ", insertTime=" + insertTime +
                ", unitCode='" + unitCode + '\'' +
                ", unitName='" + unitName + '\'' +
                ", coalEquipCode='" + coalEquipCode + '\'' +
                ", reactive=" + reactive +
                ", electric=" + electric +
                ", hElectric=" + hElectric +
                ", dElectric=" + dElectric +
                ", dOutput=" + dOutput +
                ", mElectric=" + mElectric +
                ", yElectric=" + yElectric +
                ", electricType='" + electricType + '\'' +
                ", harmonic=" + harmonic +
                ", dataSource='" + dataSource + '\'' +
                ", isBack='" + isBack + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", equipLevel=" + equipLevel +
                ", currentMinWarnVal=" + currentMinWarnVal +
                ", currentMinNormalVal=" + currentMinNormalVal +
                ", currentMaxNormalVal=" + currentMaxNormalVal +
                ", currentMaxWarnVal=" + currentMaxWarnVal +
                ", currentStatusFlag=" + currentStatusFlag +
                ", isCurrentAlarmBeenSent=" + isCurrentAlarmBeenSent +
                ", voltageMinWarnVal=" + voltageMinWarnVal +
                ", voltageMaxNormalVal=" + voltageMaxNormalVal +
                ", voltageMinNormalVal=" + voltageMinNormalVal +
                ", voltageMaxWarnVal=" + voltageMaxWarnVal +
                ", voltageStatusFlag=" + voltageStatusFlag +
                ", isVoltageAlarmBeenSent=" + isVoltageAlarmBeenSent +
                '}';
    }
}